<?php
include_once './db.php';
include_once './config.php';
header('Content-type:text/html;charset=utf-8');

//var_dump($arr);
//exit();
//var_dump($arr);
if(empty($arr)){
    $uu=1;
}
$num=count($arr);
$n=5;
$zym=ceil($num/$n);
if(isset($_GET['p'])){
    $page=$_GET['p'];
}else{
    $page=1;
}
$arr=array_slice($arr,($page-1)*$n,$n,true);


if(!empty($_FILES)){

    $ts=up();
}

include_once './index.html';

?>